﻿@model Models.EntityBase

@{
    ViewBag.Title = "相关下载";
    Layout = "~/Views/Shared/_Master.cshtml";
}
@using Models.WebSite_HaiSheng
<script type="text/javascript">
    $(document).ready(function () {
        $('#banner').attr('src', '/images/banner1.jpg');
    });
</script>
<div class="sloed01 left">
    	<div align="center"><img src="/images/fw1.png" width="185" height="57" /></div>
        <div class="fwmt">
        	<ul>
            	<li><a href=@Url.Action("Service_Standard")>服务规范</a></li>
                <li><a href=@Url.Action("Service_CantoctUs")>联系我们</a></li>
                <li><a href=@Url.Action("Service_Message")>用户留言</a></li>
                <li><a href=@Url.Action("Service_Downloads")>相关下载</a></li>
            </ul>
        </div>
    </div>
    <div class="sloed02 right">
    	<div class="ftoyt"><h3 >相关下载 DOWNLOADS</h3>
    	</div>
        <div class="texteb">您当前的位置：首页 > 服务中心 > <span>相关下载</span> </div>
        <div align="right" style="padding-top:30px; padding-right:20px;"><img src="/images/fw4.png" width="318" height="43" /></div>
        <div class="jtnews">
        	<ul>
             @{
                var items = CH.GetAllData<FileDownload>().OrderByDescending(i=>i.ModifiedTime).ToList();
                int CurrentPage = ViewBag.CurrentPage == null ? 1 : (int)ViewBag.CurrentPage;
                int Size = 8;
                var count = items.Count % Size == 0 ? items.Count / Size : (items.Count / Size + 1);
                items = items.FindAll(msg => (items.IndexOf(msg) >= (CurrentPage - 1) * Size) && (items.IndexOf(msg) + 1 <= (CurrentPage) * Size));

                foreach (var m in items)
                {
                   <li><span>@m.FileDescription</span><a href=@Url.Action("Service_File_Donwload", "Front", new { id = m.ID })>@m.FileName</a></li>
                }
            }
            	
            </ul>
              @Html.SimplePager(ViewBag.current == null ? 1 : (int)ViewBag.current, count, "/Front/Service_Downloads/?pageid={0}", "pager")
        </div>
    </div>
